import request from '@/utils/request'
// const prefix = 'health-channel/'
const prefix = 'admin/'
// 学耕教育试卷

// 试卷-列表
export function getTestPaperList(data) {
    return request({
        url: prefix + 'testPaper/getTestPaperList',
        method: 'post',
        data
    })
}
// 试卷-新增
export function addTestPaper(data) {
    return request({
        url: prefix + 'testPaper/addTestPaper',
        method: 'post',
        data
    })
}

// 试卷-修改
export function modifyTestPaper(data) {
    return request({
        url: prefix + 'testPaper/modifyTestPaper',
        method: 'post',
        data
    })
}

// 试卷-根据主键查询试卷
export function getTestPaperById(id) {
    return request({
        url: prefix + 'testPaper/getTestPaperById/' + id,
        method: 'get'
    })
}
// 试卷发布
export function postExam(id) {
    return request({
        url: prefix + 'testPaper/postExam/' + id,
        method: 'get'
    })
}

// 试卷-删除
export function removeTestPaper(id) {
    return request({
        url: prefix + 'testPaper/removeTestPaper/' + id,
        method: 'delete'
    })
}
